/*
 * transmit_recieve_driver.c
 *
 * Created: 12/17/2012 12:17:26 PM
 *  Author: duerk@msoe.edu <Kevin Duer>
 *			zimmermane@msoe.edu <Evan Zimmerman>
 *			woottons@msoe.edu <Scott Wootton>
 *			
 * Purpose: This is the driver for the transmit and recieve functions
 */ 

#include "uart.h"					//for uart functions
#include "transmission.h"			//for the transmission functions
#include<avr/io.h>					//i/o register definitions
#include<avr/interrupt.h>			//interrupt definitions
#include<stdint.h>					//for uint types

/* main
 * 
 * Purpose: Main function of the program it will control the program
 * Params: none
 * Returns: none
 */
int main(){
	initTx();
	while(1){
		if(sendStr[0] != '\0'){
			//as long as the buffer is not 40 chars send the char
			for(int x = 0; x < 40; x++){
				sendCharacter(sendStr[x]);
			}			
			sendStr[0] = '\0';//no string received
		}
	}
	return 0;
}